package com.eos.control.action.goods;

import com.eos.control.action.base.AbstractBaseAction;

public class DeleteStorageAction extends AbstractBaseAction {
	private static final long serialVersionUID = 574704320188428246L;
	private Integer storageId;
	
	public void setStorageId(Integer storageId) {
		this.storageId = storageId;
	}

	@Override
	public String execute() {
		try {
			if(null == storageId || storageId.intValue() <=0){
				
				statusCode = "300";
				message = "参数错误, 删除库存数据失败!";
			}else{
				
				statusCode = "200";
				message = "删除数据成功!";
			}
		} catch (Exception e) {
			e.printStackTrace();
			statusCode = "300";
			message = "系统异常, 删除库存数据失败!";
		}
		return SUCCESS;
	}
}
